/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ccore.expression.util;

import ccore.common.CNode;
import ccore.expression.*;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see ccore.expression.ExpressionPackage
 * @generated
 */
public class ExpressionAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static ExpressionPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ExpressionAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = ExpressionPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch the delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ExpressionSwitch<Adapter> modelSwitch =
		new ExpressionSwitch<Adapter>() {
			@Override
			public Adapter caseCIntVar(CIntVar object) {
				return createCIntVarAdapter();
			}
			@Override
			public Adapter caseCIntExpr(CIntExpr object) {
				return createCIntExprAdapter();
			}
			@Override
			public Adapter caseCIntCst(CIntCst object) {
				return createCIntCstAdapter();
			}
			@Override
			public Adapter caseCIntExprCst(CIntExprCst object) {
				return createCIntExprCstAdapter();
			}
			@Override
			public Adapter caseCAddCst(CAddCst object) {
				return createCAddCstAdapter();
			}
			@Override
			public Adapter caseCSubCst(CSubCst object) {
				return createCSubCstAdapter();
			}
			@Override
			public Adapter caseCMultCst(CMultCst object) {
				return createCMultCstAdapter();
			}
			@Override
			public Adapter caseCDivCst(CDivCst object) {
				return createCDivCstAdapter();
			}
			@Override
			public Adapter caseCBasicIntExprCst(CBasicIntExprCst object) {
				return createCBasicIntExprCstAdapter();
			}
			@Override
			public Adapter caseCIntExprVar(CIntExprVar object) {
				return createCIntExprVarAdapter();
			}
			@Override
			public Adapter caseCBasicIntExprVar(CBasicIntExprVar object) {
				return createCBasicIntExprVarAdapter();
			}
			@Override
			public Adapter caseCAddVar(CAddVar object) {
				return createCAddVarAdapter();
			}
			@Override
			public Adapter caseCSubVar(CSubVar object) {
				return createCSubVarAdapter();
			}
			@Override
			public Adapter caseCIntVarRef(CIntVarRef object) {
				return createCIntVarRefAdapter();
			}
			@Override
			public Adapter caseCNode(CNode object) {
				return createCNodeAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CIntVar <em>CInt Var</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CIntVar
	 * @generated
	 */
	public Adapter createCIntVarAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CIntExpr <em>CInt Expr</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CIntExpr
	 * @generated
	 */
	public Adapter createCIntExprAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CIntCst <em>CInt Cst</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CIntCst
	 * @generated
	 */
	public Adapter createCIntCstAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CIntExprCst <em>CInt Expr Cst</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CIntExprCst
	 * @generated
	 */
	public Adapter createCIntExprCstAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CAddCst <em>CAdd Cst</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CAddCst
	 * @generated
	 */
	public Adapter createCAddCstAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CSubCst <em>CSub Cst</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CSubCst
	 * @generated
	 */
	public Adapter createCSubCstAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CMultCst <em>CMult Cst</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CMultCst
	 * @generated
	 */
	public Adapter createCMultCstAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CDivCst <em>CDiv Cst</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CDivCst
	 * @generated
	 */
	public Adapter createCDivCstAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CBasicIntExprCst <em>CBasic Int Expr Cst</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CBasicIntExprCst
	 * @generated
	 */
	public Adapter createCBasicIntExprCstAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CIntExprVar <em>CInt Expr Var</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CIntExprVar
	 * @generated
	 */
	public Adapter createCIntExprVarAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CBasicIntExprVar <em>CBasic Int Expr Var</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CBasicIntExprVar
	 * @generated
	 */
	public Adapter createCBasicIntExprVarAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CAddVar <em>CAdd Var</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CAddVar
	 * @generated
	 */
	public Adapter createCAddVarAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CSubVar <em>CSub Var</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CSubVar
	 * @generated
	 */
	public Adapter createCSubVarAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.expression.CIntVarRef <em>CInt Var Ref</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.expression.CIntVarRef
	 * @generated
	 */
	public Adapter createCIntVarRefAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ccore.common.CNode <em>CNode</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ccore.common.CNode
	 * @generated
	 */
	public Adapter createCNodeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //ExpressionAdapterFactory
